<?php
    $selected_cat = 1;
    if($query){
        $row = $query->row();
        $selected_cat = $row->parent;
    }
    $selected_parent_setting = array(
    'table_name' => 'categories',
    'key_field' => 'id',
    'value_field' => 'nomfr',
    'where' => array('parent'=>0),
    'init_data' => array('key'=>0,'name'=>'(Parent categorie)')
    );
?>
<div id="wrapper-content">
    <?php echo form_open_multipart('product/update_category/'.$row->id.'/'.$per_page.'/'.$off_set)?>
        <table class="titrepage" width="100%">
            <tr>              
                <td >Modifier Catégorie actualit&eacute;</td>
                <td align="right"> </td>
            </tr>
        </table>
         <table width="100%" class="list">
            <tr>
                <td>Nom (Francais)</td>
                <td><input type="text" name="fr_cat_name" value="<?php echo $row->nomfr?>" size="30"><?php echo form_error('cat_name')?></td>
            </tr>
            <tr>
                <td>Nom (Anglais)</td>
                <td><input type="text" name="en_cat_name" value="<?php echo $row->nomen?>" size="30"><?php echo form_error('cat_name')?></td>
            </tr>
            <tr>
                <td>Nom (Espagnole)</td>
                <td><input type="text" name="spa_cat_name" value="<?php echo $row->nomes?>" size="30"><?php echo form_error('cat_name')?></td>
            </tr>
            <tr>
                <td>Nom (Allemagne)</td>
                <td><input type="text" name="ger_cat_name" value="<?php echo $row->nomal?>" size="30"><?php echo form_error('cat_name')?></td>
            </tr>
            <tr>
                <td>Nom (Hollande)</td>
                <td><input type="text" name="du_cat_name" value="<?php echo $row->nomho?>" size="30"><?php echo form_error('cat_name')?></td>
            </tr>
            <tr>
                <td>Cat&eacute;gorie parent </td>
                <td><?php echo form_dropdown('parent',dropdown_data($selected_parent_setting),$selected_cat,'width="30"');?></td>
            </tr>
            <tr>
                <td>Image:</td>
                <td><input type="file" name="userfile" size="20"></td>
            </tr>
            <tr>
                <td><input type="submit" name="submit" value="Enregistrer"></td>
            </tr>
        </table>
    </form>
</div>
<!--END wrapper-content-->

